//  On my honor:
//	
//  - I have not used source code obtained from another student, 
//    or any other unauthorized source, either modified or unmodified.  
//	
//  - All source code and documentation used in my program 
//    is either my original work, or was derived by me from the source
//    code published in the textbook for this course.
//	
//  - I have not discussed coding details about this project with anyone
//    other than my instructor, ACM/UPE tutors or the GTAs assigned to this
//    course. I understand that I may discuss the concepts of this program
//    with other students, and that another student may help me debug my
//    program so long as neither of us writes anything during the discussion
//    or modifies any computer file during the discussion.  I have violated
//    neither the spirit nor letter of this restriction.
//	

/**
 * @author Christopher Suh, Eric Yoo
 * 
 * TODO; ensure this version of City will work with project 4
 */
public class City {
	private int name_handle; // name_handle of the city
	private Coordinates coord;

	/** Constructor */
	public City(Integer n, Coordinates c) {
		name_handle = n;
		coord = c;
	}

	/** Get and set city name_handle */
	public Integer handle() {
		return name_handle;
	}

	public void setHandle(Integer n) {
		name_handle = n;
	}

	/** get and set X-Coordinate */
	public Coordinates getCoordinates() {
		return coord;
	}
	
	public void setCoordinates(Coordinates c) {
		coord = c;
	}

	public String toString() {
		return "" + coord.getXCoord() + "," + coord.getYCoord();
	}
}
